package com.ruoyi.common.enums;

/**
 * 标注当前操作节点的枚举
 */
public enum OperateType {

    /**
     * Before=在切点方法之前执行
     * After=在切点方法之后执行
     * AfterReturning=切点方法返回后执行
     * AfterThrowing=切点方法抛异常执行
     * Around=环绕增强(执行前,执行后,程序抛异常)
     * */
    AROUND("Around", "环绕增强"),
    AFTERTHROWING("AfterThrowing", "方法抛异常"),
    AFTERRETURNING("AfterReturning", "切点方法返回后"),
    AFTER("After", "方法之后"),
    BEFORE("Before", "方法之前");

    public final String ASPECT_NODE_NAME;

    public final String ASPECT_VALUE;

    OperateType(String ASPECT_VALUE, String ASPECT_NODE_NAME){
        this.ASPECT_VALUE=ASPECT_VALUE;
        this.ASPECT_NODE_NAME=ASPECT_NODE_NAME;
    }

}
